package com.yinwq.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @author: yinwenqiang@qccr.com
 * @date: Created in 2021/6/11 17:55
 */
public interface LoadBalancer {

    /**
     * 负载均衡算法选择服务实例
     * @param serviceInstances
     * @return
     */
    ServiceInstance choice(List<ServiceInstance> serviceInstances);
}
